package logics 
{
	import constants.utils;
	import points.CollidePoint;
	/**
	 * ...
	 * @author parasitic
	 */
	//4-7
	public class FieldMap 
	{
		private var off_x:Number;
		private var off_y:Number;
		private var dim:int;
		private var scale:int;
		private var mapArray:Array;
		
		private function print():void
		{	
			for (var y:int = 0; y < mapArray.length; y++)
			{
				trace(mapArray[y]);
			}
		}
		
		public function isMember(p:CollidePoint):Boolean
		{
			trace(off_x);
			return true;
		}
				
		private function init():void
		{
			mapArray = new Array();
			
			for (var y:int = 0; y < dim; y++)
			{
				mapArray.push(new Array());
				for (var x:int = 0; x < dim; x++)
				{
					mapArray[y].push(0);
				}
			}
		}
		
		public function FieldMap(offsetx:Number, offsety:Number, d:int = 40, s:int = 10) 
		{
			dim = d;
			scale = s;
			off_x = offsetx;
			off_y = offsety; 
			
			trace(off_x);
			trace(off_y);
			
			init();
			//print();
		}
	}

}